package ${package.Service};

import ${package.Entity}.${entity};
import ${package.Entity}.vo.${entity}ShowVO;
import ${package.Entity}.dto.${entity}SearchDTO;
import ${package.Mapper}.${table.mapperName};
<#--import ${package.Service}.${table.serviceName};-->
import ${superServiceClassPackage};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
<#--import java.util.Map;-->

/**
 * <p>
 * ${table.comment!} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 * @version V1.0
 */
@Service
@RequiredArgsConstructor
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
<#--
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
-->
public class ${table.serviceName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${superServiceClass}<${entity}>{

    final ${entity}Mapper ${entity?uncap_first}Mapper;


    public Page<${entity}ShowVO> pageByParam(Page<${entity}SearchDTO> page, ${entity}SearchDTO param) {

        return ${entity?uncap_first}Mapper.pageByParam(page,param);
    }
}
</#if>
